﻿var MobileApplication = function () {
    MobileApplication.superclass.constructor.call(this);

    var self = this;

    this.Phone = null;
    this.MobileApplicationVersion = "0";

    self.initialize = override(self.initialize, function () {
        self.Phone = new PhoneCommunicator();
        self.MobileApplicationVersion = Utils.getQueryString("appv") || "0";
    });

    this.goBack = function () {
        if (self.CurrentPage && self.CurrentPage.instance && self.CurrentPage.instance.goBack)
            self.CurrentPage.instance.goBack();
    };
};
extend(MobileApplication, Application);